package com.sys.SysLogs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sys.SysLogs.mapper.SysSalesOrderLogsMapper;
import com.sys.SysLogs.domain.SysSalesOrderLogs;
import com.sys.SysLogs.service.ISysSalesOrderLogsService;

/**
 * 订单操作日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-28
 */
@Service
public class SysSalesOrderLogsServiceImpl implements ISysSalesOrderLogsService 
{
    @Autowired
    private SysSalesOrderLogsMapper sysSalesOrderLogsMapper;

    /**
     * 查询订单操作日志
     * 
     * @param logId 订单操作日志主键
     * @return 订单操作日志
     */
    @Override
    public SysSalesOrderLogs selectSysSalesOrderLogsByLogId(Long logId)
    {
        return sysSalesOrderLogsMapper.selectSysSalesOrderLogsByLogId(logId);
    }

    /**
     * 查询订单操作日志列表
     * 
     * @param sysSalesOrderLogs 订单操作日志
     * @return 订单操作日志
     */
    @Override
    public List<SysSalesOrderLogs> selectSysSalesOrderLogsList(SysSalesOrderLogs sysSalesOrderLogs)
    {
        return sysSalesOrderLogsMapper.selectSysSalesOrderLogsList(sysSalesOrderLogs);
    }

    /**
     * 新增订单操作日志
     * 
     * @param sysSalesOrderLogs 订单操作日志
     * @return 结果
     */
    @Override
    public int insertSysSalesOrderLogs(SysSalesOrderLogs sysSalesOrderLogs)
    {
        return sysSalesOrderLogsMapper.insertSysSalesOrderLogs(sysSalesOrderLogs);
    }

    /**
     * 修改订单操作日志
     * 
     * @param sysSalesOrderLogs 订单操作日志
     * @return 结果
     */
    @Override
    public int updateSysSalesOrderLogs(SysSalesOrderLogs sysSalesOrderLogs)
    {
        return sysSalesOrderLogsMapper.updateSysSalesOrderLogs(sysSalesOrderLogs);
    }

    /**
     * 批量删除订单操作日志
     * 
     * @param logIds 需要删除的订单操作日志主键
     * @return 结果
     */
    @Override
    public int deleteSysSalesOrderLogsByLogIds(Long[] logIds)
    {
        return sysSalesOrderLogsMapper.deleteSysSalesOrderLogsByLogIds(logIds);
    }

    /**
     * 删除订单操作日志信息
     * 
     * @param logId 订单操作日志主键
     * @return 结果
     */
    @Override
    public int deleteSysSalesOrderLogsByLogId(Long logId)
    {
        return sysSalesOrderLogsMapper.deleteSysSalesOrderLogsByLogId(logId);
    }
}
